<?php
class Manager_ConfigController extends Zendvn_Controller_Action{
	
	private $_arrParam;
	
	private $_mainAction;
	
	protected $_currentController;
	
	protected $_paginator = array(
									'itemCountPerPage' => 5,
									'pageRange' => 3,
								  ); 
	
	public  function init()
	{
	    $this->_arrParam = $this->_request->getParams();	
        $this->loadTemplate(TEMPLATE_PATH . '/admin/system');
        
        $this->_mainAction = $this->_arrParam['module'] . '/' . $this->_arrParam['controller'] . '/index';	
	    $this->view->arrParam = $this->_arrParam; 
        
    
    }
    
    public  function indexAction()
    {
    $this->_redirect('manager/index/controlpanel/');
    }
    public function addAction()
    {
  
      
	  $this->view->Title = "Manager ::Global Configuration";
	  $this->view->headTitle($this->view->Title,true);
	  
	  $tbl_relate       = new Default_Model_config();
	  $this->view->data = $tbl_relate->get_details();
	
      if($this->_request->isPost()==true)
		{	
		   $data=$this->_arrParam;
		   $tbl_relate->edit($data);	
	      $this->_redirect('manager/index/controlpanel/');
		}
		
    	
    }
    
    
}